import * as ActionTypes from './ActionTypes';

const initialState = {
    publishType: '', // 发布主体类型
    appName: '', // 主体APP名称
    title: '', // 标题
    describe: '', // 描述
    addressLink: '', // 链接
    buzouArr: '', // 步骤
    submitText: '', // 收集信息


};

export default PublishReducer = (state = initialState, action) => {
    switch (action.type) {
        case 'SET_PUBLISHINFO':
            return {
                ...state,
                ...action.payload.publishInfo,
            }
        case ActionTypes.LOGOUT:
            return {
                ...initialState
            }
        default:
            return state;
    }
}